package com.nefu.huiyi.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("user")
public class User {

    @Schema(description = "用户ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "密码")
    @TableField("password")
    private String password;

    @Schema(description = "用户名")
    @TableField("username")
    private String username;

    @Schema(description = "角色：doctor 或 admin")
    @TableField("role")
    private String role;

}